".__noscriptBlank__ { background-color: white !important; color: white !important; border-color: white !important; background-image: none !important }";
while (!(a instanceof CI.nsIDOMHTMLAnchorElement || a instanceof CI.nsIDOMHTMLAreaElement)) {
if (typeof(a.getAttribute) == "function" && (onclick = a.getAttribute("onclick"))) break;
if (!(a = a.parentNode)) return;
}
const href = a.getAttribute("href");
// fix JavaScript links
var jsURL;
if (href) {
jsURL = /^javascript:/.test(href);
if (!(jsURL || href == "#")) return;
} else {
jsURL = "";
}
onclick = onclick || a.getAttribute("onclick");
var fixedHref = (onclick && this.extractJSLink(onclick)) ||
(jsURL && this.extractJSLink(href)) || "";
onclick = onclick || href;
if (/\bsubmit\s*\(\s*\)/.test(onclick)) {
var form;
if (fixedHref) {
form = doc.getElementById(fixedHref); // youtube
if (!(form instanceof CI.nsIDOMHTMLFormElement)) {
form = doc.forms.namedItem(fixedHref);
}
}
if (!form) {
var m = onclick.match(/(?:(?:\$|document\.getElementById)\s*\(\s*["']#?([\w\-]+)[^;]+|\bdocument\s*\.\s*(?:forms)?\s*(?:\[\s*["']|\.)?([^\.\;\s"'\]]+).*)\.submit\s*\(\)/);
form = m && (/\D/.test(m[1]) ? (doc.forms.namedItem(m[1]) || doc.getElementById(m[1])) : doc.forms.item(parseInt(m[1])));
if (!(form && (form instanceof CI.nsIDOMHTMLFormElement))) {
while (form = a.parentNode && form != doc && !form instanceof CI.nsIDOMHTMLFormElement);
}
}
if (form && (form instanceof CI.nsIDOMHTMLFormElement)) {
form.submit();
ev.preventDefault();
}
return;
}
if (fixedHref) {
var callback;
if (/^(?:button|input)$/i.test(a.tagName)) { // JS button